#ifndef SRIFORCESENSORDLL_H
#define SRIFORCESENSORDLL_H

#include <QByteArray>
#include "sriforcesensordll_global.h"

typedef struct ForceSensorData{
    bool    SensorConnectMark;
    double  Data[6];
    double  RawData[6];
}ST_ForceSensorData;

class SRIForceSensor : public SRIForceSensorDLL{
private:
    int        toForceSensorSocket;
    QByteArray RecvRawForceSensorData;
    ST_ForceSensorData mForceSensorData;
public:
    SRIForceSensor();
    ~SRIForceSensor();
public:
    short ForceSensorConnect(QString ip,int port);
    short ForceSensorLoopRun();
    short ReadForceSensorData(double (&Data)[6]);
private:
    short ForceSensorDataDeal();
};

#endif // SRIFORCESENSORDLL_H
